package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 供应商对象 suppliers
 * 
 * @author ruoyi
 */
@Data
public class Supplier extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 供应商ID */
    private Long supplierId;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String supplierName;

    /** 供应商编号 */
    @Excel(name = "供应商编号")
    private Long supplierNumber;

    /** 联系人 */
    @Excel(name = "联系人")
    private String contactPerson;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String payMethod;

    /** 收款人 */
    @Excel(name = "收款人")
    private String payPerson;

    /** 收款账号 */
    @Excel(name = "收款账号")
    private Long payNumber;

    /** 备注 */
    @Excel(name = "备注")
    private String notes;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    // 省略getter/setter方法...
    // 请使用IDE自动生成getter/setter方法
    
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("supplierId", getSupplierId())
            .append("supplierName", getSupplierName())
            .append("supplierNumber", getSupplierNumber())
            .append("contactPerson", getContactPerson())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("payMethod", getPayMethod())
            .append("payPerson", getPayPerson())
            .append("payNumber", getPayNumber())
            .append("notes", getNotes())
            .append("address", getAddress())
            .append("createdAt", getCreatedAt())
            .toString();
    }
} 